// 导入组件
import Vue from 'vue';
import Router from 'vue-router';
// 登录
import login from '@/views/login';
// 首页
import index from '@/views/index';
/**
 * 基础菜单
 */
// 商品管理
import Goods from '@/views/goods/Goods';
// 机器信息管理
import Machine from '@/views/machine/Machine';
// 货道信息管理
import MachineAisle from '@/views/machine/MachineAisle';
/**
 * 订单管理
 */
// 交易订单
import Order from '@/views/pay/Order';
/**
 * 系统管理
 */
// 用户管理
import user from '@/views/system/user';
// 菜单管理
import Module from '@/views/system/Module';
//  公司行业类型管理
import CompanyType from "@/views/system/CompanyType";
// 角色管理
import Role from '@/views/system/Role';
// 公司管理
import Dept from '@/views/system/Dept';
// 系统环境变量
import Variable from '@/views/system/Variable';
//教育经历管理
import EducationalExperience from '@/views/system/EducationalExperience';
//工作经历管理
import JobExperience from '@/views/system/JobExperience';
// 民族管理
import Nation from '@/views/system/Nation';
// 婚姻管理
import MaritalStatus from '@/views/system/MaritalStatus'
// 权限管理
import Permission from '@/views/system/Permission';
// 学历管理
import RecruitmentEducation from '@/views/system/recruitmentEducation';
// 入职时间管理
import Entrytime from "@/views/system/Entrytime";
//工作经历管理
// import JobExperience from '@views/system/JobExperience';
// 工作经验管理
import WorkExperience from '@/views/system/workExperience';
//发布招聘信息表管理
import RecruitmentPost from "@/views/system/RecruitmentPost";
//融资阶段表管理
import FinancingStage from "@/views/system/FinancingStage";
//工作时间基础表
import JobHoursBasice from '@/views/system/JobHoursBasice';
//公司福利标签表
import CompanyWelfareLabelBasics from '@/views/system/CompanyWelfareLabelBasics';
//公司工作时间表
import CompanyJobHoursBasice from '@/views/system/CompanyJobHoursBasice';
//公司产品介绍表
import  CompanyProductIntroduction from  '@/views/system/CompanyProductIntroduction'

//公司相关照片表
import CompanyPic from "../views/company/CompanyPic";
//求职者类型
import NatureWork from '@/views/system/NatureWork';
import Company from "../views/system/Company";
/**
 * 支付管理
 */
// 支付配置信息
import MachineConfig from '@/views/machine/MachineConfig';
// 支付配置
import Config from '@/views/pay/Config';

/**
 * 数据监控
 */
// 监控查询
import druidLogin from '@/views/druid/login';

// 图表界面
import statistics from '@/views/charts/statistics';

/**
 * 公司福利基础标签
 */

import WelfareLabelBasics from "../views/system/WelfareLabelBasics";
import ExpectedSalary from "../views/system/ExpectedSalary";
/**
 * 行业信息
 */
import Industry from "../views/goods/Industry";
import PositionType from "../views/goods/PositionType";
import ProjectExperience from "../views/system/ProjectExperience";
import ResumViewsHistory from "../views/system/ResumViewsHistory";
import Position from "../views/goods/Position";
import Publisher from "../views/system/Publisher";
import UserInfo from "../views/system/UserInfo";
import Log from "../views/system/Log";

// 启用路由
Vue.use(Router);

// 导出路由

export default new Router({
  routes: [{
    path: '/',
    name: '',
    component: login,
    hidden: true,
    meta: {
      requireAuth: false
    }
  }, {
    path: '/login',
    name: '登录',
    component: login,
    hidden: true,
    meta: {
      requireAuth: false
    }

  },
    {
    path: '/index',
    name: '首页',
    component: index,
    iconCls: 'el-icon-tickets',
    children: [{
      path: '/goods/Goods',
      name: '商品管理',
      component: Goods,
      meta: {
        requireAuth: true
      }
    }, {
      path: '/machine/Machine',
      name: '机器信息管理',
      component: Machine,
      meta: {
        requireAuth: true
      }
    },
      {
        path: '/goods/Industry',
        name: '行业信息管理',
        component: Industry,
        meta: {
          requireAuth: true
        }
    },
      {
        path: '/goods/PositionType',
        name: '主职位类型管理',
        component: PositionType,
        meta: {
          requireAuth: true
        }
      },
      {
        path: '/company/CompanyPic',
        name: '职位信息管理',
        component: CompanyPic,
        meta: {
          requireAuth: true
        }
      },
      {
        path: '/goods/Position',
        name: '职位信息管理',
        component: Position,
        meta: {
          requireAuth: true
        }
      },
      {
      path: '/machine/MachineAisle',
      name: '货道信息管理',
      component: MachineAisle,
      meta: {
        requireAuth: true
      }
    }, {
      path: '/pay/Order',
      name: '交易订单',
      component: Order,
      meta: {
        requireAuth: true
      }
    },
      {
        path: '/system/Entrytime',
        name: '入职时间管理',
        component: Entrytime,
        meta: {
          requireAuth: true
        }
      },
      {
        path: '/system/JobExperience',
        name: '工作经历管理',
        component: JobExperience,
        meta: {
          requireAuth: true
        }
      },
      {
        path: '/system/EducationalExperience',
        name: '教育经历管理',
        component: EducationalExperience,
        meta: {
          requireAuth: true
        }
      },
      {
        path: '/system/CompanyType',
        name: '公司行业类型管理',
        component: CompanyType,
        meta: {
          requireAuth: true
        }
      },
      {
      path: '/system/user',
      name: '用户管理',
      component: user,
      meta: {
        requireAuth: true
      }
    },
      {
        path: '/system/RecruitmentEducation',
        name: '学历管理',
        component: RecruitmentEducation,
        meta: {
          requireAuth: true
        }
      },
      {
        path: '/system/WelfareLabelBasics',
        name: '基础福利标签管理',
        component: WelfareLabelBasics,
        meta: {
          requireAuth: true
        }
      },
      {
        path: '/system/MaritalStatus',
        name: '婚姻管理',
        component: MaritalStatus,
        meta: {
          requireAuth: true
        }
      },
      {
        path: '/system/WorkExperience',
        name: '工作经验管理',
        component: WorkExperience,
        meta: {
          requireAuth: true
        }
      },
      {
        path: '/system/ExpectedSalary',
        name: '期望薪资',
        component: ExpectedSalary,
        meta: {
          requireAuth: true
        }
      },
      {
        path: '/system/RecruitmentPost',
        name: '发布招聘信息管理',
        component: RecruitmentPost,
        meta: {
          requireAuth: true
        }
      },
      {
        path: '/system/JobHoursBasice',
        name: '工作时间基础管理',
        component: JobHoursBasice,
        meta: {
          requireAuth: true
        }
      },
      {
        path: '/system/CompanyWelfareLabelBasics',
        name: '公司福利标签表',
        component: CompanyWelfareLabelBasics,
        meta: {
          requireAuth: true
        }
      },
      {
        path: '/system/CompanyProductIntroduction',
        name: '公司产品介绍表',
        component: CompanyProductIntroduction,
        meta: {
          requireAuth: true
        }
      },
      {
        path: '/system/CompanyJobHoursBasice',
        name: '公司工作时间表',
        component: CompanyJobHoursBasice,
        meta: {
          requireAuth: true
        }
      },
      {
        path: '/system/ProjectExperience',
        name: '项目经历表管理',
        component: ProjectExperience,
        meta: {
          requireAuth: true
        }
      },
      {
        path: '/system/ResumViewHistory',
        name: '用户简历浏览记录表管理',
        component: ResumViewsHistory,
        meta: {
          requireAuth: true
        }
      },
      {
        path: '/system/Nation',
        name: '民族管理',
        component: Nation,
        meta: {
          requireAuth: true
        }
      },

      {
        path: '/system/FinancingStage',
        name: '融资阶段',
        component: FinancingStage,
        meta: {
          requireAuth: true
        }
      },
      {
        path: '/system/Userinfo',
        name: '用户注册',
        component: UserInfo,
        meta: {
          requireAuth: true
        }
      },
      {
        path: '/system/NatureWork',
        name: '求职类型',
        component: NatureWork,
        meta: {
          requireAuth: true
        }
      },
      {
        path: '/system/Company',
        name: '公司信息',
        component: Company,
        meta: {
          requireAuth: true
        }
      },
      {
        path: '/system/Publisher',
        name: '发布人信息',
        component: Publisher,
        meta: {
          requireAuth: true
        }
      },

      {
        path: '/system/Module',
        name: '菜单管理',
        component: Module,
        meta: {
          requireAuth: true
        }
      }, {
        path: '/system/Role',
        name: '角色管理',
        component: Role,
        meta: {
          requireAuth: true
        }
      }, {
        path: '/system/Dept',
        name: '公司管理',
        component: Dept,
        meta: {
          requireAuth: true
        }
      }, {
        path: '/system/Variable',
        name: '系统环境变量',
        component: Variable,
        meta: {
          requireAuth: true
        }
      }, {
        path: '/system/Permission',
        name: '权限管理',
        component: Permission,
        meta: {
          requireAuth: true
        }
      }, {
        path: '/machine/MachineConfig',
        name: '支付配置信息',
        component: MachineConfig,
        meta: {
          requireAuth: true
        }
      }, {
        path: '/pay/Config',
        name: '支付配置',
        component: Config,
        meta: {
          requireAuth: true
        }
      }, {
        path: '/druid/login',
        name: '监控查询',
        component: druidLogin,
        meta: {
          requireAuth: true
        }
      }, {
        path: '/charts/statistics',
        name: '数据可视化',
        component: statistics,
        meta: {
          requireAuth: true
        }
      }, {
        path: '/system/Log',
        name: '操作日志',
        component: Log,
        meta: {
          requireAuth: true
        }
      }
      ]
  }]
})
